


var app = angular.module("chatApp",[])

/*app.config(function($routeProvider){

	$routeProvider.when('/home',{ templateUrl: 'songs.html',controller: 'SongsController'}).
				   when('/about',{ templateUrl: 'about.html',controller: 'AboutController'}).
				   when('/song/:id', {templateUrl: 'song.html', controller: 'SongController'}).
				   otherwise({redirectTo: '/home'});
});*/



app.controller("chatRoomController",function ($scope, $http){

now.ready(function(){

	$scope.rooms = now.globalData;
	console.log(now.globalData.rooms[0].name)

	

});

	/*$scope.rooms = [
		{title: "Room1", status: "Op"},
		{title: "Room2", status: "User"},
		{title: "Room3", status: "NON"},
	];*/
});